package com.bw.mine.login.viewmodel

import com.bw.common.http.Res
import com.bw.mine.login.entiity.LoginEntity
import retrofit2.http.POST
import retrofit2.http.Query

interface LoginApiService {
    @POST("/api/user/login")
    suspend fun getLogin(@Query("password") password:String,@Query("username")username:String):Res<LoginEntity?>

    @POST("/api/user/register")
    suspend fun getRegister(@Query("password") password:String,@Query("username")username:String): Res<LoginEntity?>
}